<?php
//前台首页控制器
namespace App\Http\Controllers\home;

use Illuminate\Http\Request;

use App\Http\Requests;

class CenterController extends CommonController
{ 
    //加载前台网站首页
	public function index()
    {
		$f = \DB::table("m_forum")->get();
		$g = \DB::table("m_genre")->get();
		$t = \DB::table("m_type")->get();
		$p = \DB::table("m_pic")->get();
		$s = \DB::table("m_search")->get();
		$m = \DB::table("m_info")->get();
		$fl = \DB::table("friendlink")->get();
		$z = \DB::table("notice")->where('status','0')->get();
		$n = \DB::table("notice")->where('status','1')->get();
		return view("home.center",['forum'=>$f,'genre'=>$g, 'notice'=>$n,'notices'=>$z, 'minfo'=>$m,'search'=>$s,'friendlink'=>$fl,'type'=>$t,'pic'=>$p]);
    }
}
